package com.school.hjt.schoolclasscard.model;

import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.util.Log;
import android.widget.Toast;

import com.google.gson.Gson;
import com.school.hjt.schoolclasscard.BaseApplication;
import com.school.hjt.schoolclasscard.db.CardDao;
import com.school.hjt.schoolclasscard.db.SchInfo;
import com.school.hjt.schoolclasscard.utlis.OkhttPost;
import com.school.hjt.schoolclasscard.utlis.PrefUtild;

import java.util.List;

import okhttp3.Call;

/**
 * Created by xqx on 2018/1/9.
 *主界面model
 */
public class FActivityModel {
    public String getSchName(){
        BaseApplication.getDaoInstant().clear();
        List<SchInfo> schInfos = CardDao.querySchInfo();
        if (schInfos.size()!=0){
            return schInfos.get(0).school_name;
        }
        return "暂无";
    }
}
